home *** CD-ROM | disk | FTP | other *** search
- on morphHeight theField, destTH
- global gRealTH, gRealTHList
- set gRealTH to getProp(gRealTHList, "#" & theField)
- if not gRealTH then
- set gRealTH to the textHeight of field theField
- end if
- set startTH to gRealTH
- if destTH > startTH then
- repeat with i = startTH to destTH
- set the textHeight of field theField to i
- updateStage()
- end repeat
- else
- repeat with i = startTH down to destTH
- set the textHeight of field theField to i
- updateStage()
- end repeat
- end if
- set gRealTH to destTH
- setProp(gRealTHList, "#" & theField, gRealTH)
- end
-
- on changeTextColor theField, theTextScope, theColors
- if theTextScope <> EMPTY then
- set theTextScope to theTextScope && "of"
- end if
- if listp(theColors) then
- repeat with i in theColors
- do("set the foreColor of " & theTextScope & " field " & QUOTE & theField & QUOTE & " to " & i)
- updateStage()
- waitForTicks(10)
- end repeat
- else
- do("set the foreColor of " & theTextScope & " field " & QUOTE & theField & QUOTE & " to " & theColors)
- updateStage()
- end if
- end
-
- on changeTextFont theField, theTextScope, theFont
- if theTextScope <> EMPTY then
- set theTextScope to theTextScope && "of"
- end if
- if listp(theFont) then
- repeat with i in theFont
- do("set the textFont of " & theTextScope & " field " & QUOTE & theField & QUOTE & " to " & QUOTE & i & QUOTE)
- updateStage()
- end repeat
- else
- do("set the textFont of " & theTextScope & " field " & QUOTE & theField & QUOTE & " to " & QUOTE & theFont & QUOTE)
- updateStage()
- end if
- end
-
- on changeTextSize theField, theTextScope, theSize
- if theTextScope <> EMPTY then
- set theTextScope to theTextScope && "of"
- end if
- if listp(theSize) then
- repeat with i in theSize
- do("set the textSize of " & theTextScope & " field " & QUOTE & theField & QUOTE & " to " & i)
- morphHeight(theField, 24)
- updateStage()
- end repeat
- else
- do("set the textSize of " & theTextScope & " field " & QUOTE & theField & QUOTE & " to " & theSize)
- morphHeight(theField, 24)
- end if
- end
-
- on changeTextStyle theField, theTextScope, theStyle
- if theTextScope <> EMPTY then
- set theTextScope to theTextScope && "of"
- end if
- if listp(theStyle) then
- repeat with i in theStyle
- do("set the textStyle of " & theTextScope & " field " & QUOTE & theField & QUOTE & " to " & QUOTE & i & QUOTE)
- updateStage()
- end repeat
- else
- do("set the textStyle of " & theTextScope & " field " & QUOTE & theField & QUOTE & " to " & QUOTE & theStyle & QUOTE)
- updateStage()
- end if
- end
-